Optimal. Leaf size=96 \[ -\frac {\coth (e+f x)}{f \sqrt {a \cosh ^2(e+f x)}}-\frac {2 \coth (e+f x) \text {csch}^2(e+f x)}{3 f \sqrt {a \cosh ^2(e+f x)}}-\frac {\coth (e+f x) \text {csch}^4(e+f x)}{5 f \sqrt {a \cosh ^2(e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 96, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {3255, 3286,
2686, 200} \begin {gather*} -\frac {\coth (e+f x)}{f \sqrt {a \cosh ^2(e+f x)}}-\frac {\coth (e+f x) \text {csch}^4(e+f x)}{5 f \sqrt {a \cosh ^2(e+f x)}}-\frac {2 \coth (e+f x) \text {csch}^2(e+f x)}{3 f \sqrt {a \cosh ^2(e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 200
Rule 2686
Rule 3255
Rule 3286
Rubi steps
\begin {align*} \int \frac {\coth ^6(e+f x)}{\sqrt {a+a \sinh ^2(e+f x)}} \, dx &=\int \frac {\coth ^6(e+f x)}{\sqrt {a \cosh ^2(e+f x)}} \, dx\\ &=\frac {\cosh (e+f x) \int \coth ^5(e+f x) \text {csch}(e+f x) \, dx}{\sqrt {a \cosh ^2(e+f x)}}\\ &=-\frac {(i \cosh (e+f x)) \text {Subst}\left (\int \left (-1+x^2\right )^2 \, dx,x,-i \text {csch}(e+f x)\right )}{f \sqrt {a \cosh ^2(e+f x)}}\\ &=-\frac {(i \cosh (e+f x)) \text {Subst}\left (\int \left (1-2 x^2+x^4\right ) \, dx,x,-i \text {csch}(e+f x)\right )}{f \sqrt {a \cosh ^2(e+f x)}}\\ &=-\frac {\coth (e+f x)}{f \sqrt {a \cosh ^2(e+f x)}}-\frac {2 \coth (e+f x) \text {csch}^2(e+f x)}{3 f \sqrt {a \cosh ^2(e+f x)}}-\frac {\coth (e+f x) \text {csch}^4(e+f x)}{5 f \sqrt {a \cosh ^2(e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 49, normalized size = 0.51 \begin {gather*} -\frac {\coth (e+f x) \left (15+10 \text {csch}^2(e+f x)+3 \text {csch}^4(e+f x)\right )}{15 f \sqrt {a \cosh ^2(e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.58, size = 54, normalized size = 0.56
method | result | size |
default | \(-\frac {\cosh \left (f x +e \right ) \left (15 \left (\sinh ^{4}\left (f x +e \right )\right )+10 \left (\sinh ^{2}\left (f x +e \right )\right )+3\right )}{15 \sinh \left (f x +e \right )^{5} \sqrt {a \left (\cosh ^{2}\left (f x +e \right )\right )}\, f}\) | \(54\) |
risch | \(-\frac {2 \left ({\mathrm e}^{2 f x +2 e}+1\right ) \left (15 \,{\mathrm e}^{8 f x +8 e}-20 \,{\mathrm e}^{6 f x +6 e}+58 \,{\mathrm e}^{4 f x +4 e}-20 \,{\mathrm e}^{2 f x +2 e}+15\right )}{15 \sqrt {\left ({\mathrm e}^{2 f x +2 e}+1\right )^{2} a \,{\mathrm e}^{-2 f x -2 e}}\, f \left ({\mathrm e}^{2 f x +2 e}-1\right )^{5}}\) | \(102\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 1315 vs.
\(2 (94) = 188\).
time = 0.57, size = 1315, normalized size = 13.70 \begin {gather*} -\frac {\frac {120 \, \arctan \left (e^{\left (-f x - e\right )}\right )}{\sqrt {a}} + \frac {45 \, \log \left (e^{\left (-f x - e\right )} + 1\right )}{\sqrt {a}} - \frac {45 \, \log \left (e^{\left (-f x - e\right )} - 1\right )}{\sqrt {a}} + \frac {2 \, {\left (105 \, \sqrt {a} e^{\left (-f x - e\right )} - 530 \, \sqrt {a} e^{\left (-3 \, f x - 3 \, e\right )} + 328 \, \sqrt {a} e^{\left (-5 \, f x - 5 \, e\right )} - 110 \, \sqrt {a} e^{\left (-7 \, f x - 7 \, e\right )} + 15 \, \sqrt {a} e^{\left (-9 \, f x - 9 \, e\right )}\right )}}{5 \, a e^{\left (-2 \, f x - 2 \, e\right )} - 10 \, a e^{\left (-4 \, f x - 4 \, e\right )} + 10 \, a e^{\left (-6 \, f x - 6 \, e\right )} - 5 \, a e^{\left (-8 \, f x - 8 \, e\right )} + a e^{\left (-10 \, f x - 10 \, e\right )} - a}}{256 \, f} - \frac {\frac {120 \, \arctan \left (e^{\left (-f x - e\right )}\right )}{\sqrt {a}} - \frac {45 \, \log \left (e^{\left (-f x - e\right )} + 1\right )}{\sqrt {a}} + \frac {45 \, \log \left (e^{\left (-f x - e\right )} - 1\right )}{\sqrt {a}} + \frac {2 \, {\left (15 \, \sqrt {a} e^{\left (-f x - e\right )} - 110 \, \sqrt {a} e^{\left (-3 \, f x - 3 \, e\right )} + 328 \, \sqrt {a} e^{\left (-5 \, f x - 5 \, e\right )} - 530 \, \sqrt {a} e^{\left (-7 \, f x - 7 \, e\right )} + 105 \, \sqrt {a} e^{\left (-9 \, f x - 9 \, e\right )}\right )}}{5 \, a e^{\left (-2 \, f x - 2 \, e\right )} - 10 \, a e^{\left (-4 \, f x - 4 \, e\right )} + 10 \, a e^{\left (-6 \, f x - 6 \, e\right )} - 5 \, a e^{\left (-8 \, f x - 8 \, e\right )} + a e^{\left (-10 \, f x - 10 \, e\right )} - a}}{256 \, f} + \frac {\frac {60 \, \arctan \left (e^{\left (-f x - e\right )}\right )}{\sqrt {a}} + \frac {75 \, \log \left (e^{\left (-f x - e\right )} + 1\right )}{\sqrt {a}} - \frac {75 \, \log \left (e^{\left (-f x - e\right )} - 1\right )}{\sqrt {a}} + \frac {2 \, {\left (105 \, \sqrt {a} e^{\left (-f x - e\right )} + 130 \, \sqrt {a} e^{\left (-3 \, f x - 3 \, e\right )} - 284 \, \sqrt {a} e^{\left (-5 \, f x - 5 \, e\right )} + 190 \, \sqrt {a} e^{\left (-7 \, f x - 7 \, e\right )} - 45 \, \sqrt {a} e^{\left (-9 \, f x - 9 \, e\right )}\right )}}{5 \, a e^{\left (-2 \, f x - 2 \, e\right )} - 10 \, a e^{\left (-4 \, f x - 4 \, e\right )} + 10 \, a e^{\left (-6 \, f x - 6 \, e\right )} - 5 \, a e^{\left (-8 \, f x - 8 \, e\right )} + a e^{\left (-10 \, f x - 10 \, e\right )} - a}}{320 \, f} + \frac {\frac {60 \, \arctan \left (e^{\left (-f x - e\right )}\right )}{\sqrt {a}} - \frac {75 \, \log \left (e^{\left (-f x - e\right )} + 1\right )}{\sqrt {a}} + \frac {75 \, \log \left (e^{\left (-f x - e\right )} - 1\right )}{\sqrt {a}} - \frac {2 \, {\left (45 \, \sqrt {a} e^{\left (-f x - e\right )} - 190 \, \sqrt {a} e^{\left (-3 \, f x - 3 \, e\right )} + 284 \, \sqrt {a} e^{\left (-5 \, f x - 5 \, e\right )} - 130 \, \sqrt {a} e^{\left (-7 \, f x - 7 \, e\right )} - 105 \, \sqrt {a} e^{\left (-9 \, f x - 9 \, e\right )}\right )}}{5 \, a e^{\left (-2 \, f x - 2 \, e\right )} - 10 \, a e^{\left (-4 \, f x - 4 \, e\right )} + 10 \, a e^{\left (-6 \, f x - 6 \, e\right )} - 5 \, a e^{\left (-8 \, f x - 8 \, e\right )} + a e^{\left (-10 \, f x - 10 \, e\right )} - a}}{320 \, f} + \frac {\frac {15 \, \arctan \left (e^{\left (-f x - e\right )}\right )}{\sqrt {a}} + \frac {15 \, \sqrt {a} e^{\left (-f x - e\right )} - 80 \, \sqrt {a} e^{\left (-3 \, f x - 3 \, e\right )} + 178 \, \sqrt {a} e^{\left (-5 \, f x - 5 \, e\right )} - 80 \, \sqrt {a} e^{\left (-7 \, f x - 7 \, e\right )} + 15 \, \sqrt {a} e^{\left (-9 \, f x - 9 \, e\right )}}{5 \, a e^{\left (-2 \, f x - 2 \, e\right )} - 10 \, a e^{\left (-4 \, f x - 4 \, e\right )} + 10 \, a e^{\left (-6 \, f x - 6 \, e\right )} - 5 \, a e^{\left (-8 \, f x - 8 \, e\right )} + a e^{\left (-10 \, f x - 10 \, e\right )} - a}}{24 \, f} - \frac {\arctan \left (e^{\left (-f x - e\right )}\right )}{16 \, \sqrt {a} f} + \frac {2685 \, \sqrt {a} e^{\left (-f x - e\right )} - 7370 \, \sqrt {a} e^{\left (-3 \, f x - 3 \, e\right )} + 8632 \, \sqrt {a} e^{\left (-5 \, f x - 5 \, e\right )} - 4790 \, \sqrt {a} e^{\left (-7 \, f x - 7 \, e\right )} + 1035 \, \sqrt {a} e^{\left (-9 \, f x - 9 \, e\right )}}{1920 \, {\left (5 \, a e^{\left (-2 \, f x - 2 \, e\right )} - 10 \, a e^{\left (-4 \, f x - 4 \, e\right )} + 10 \, a e^{\left (-6 \, f x - 6 \, e\right )} - 5 \, a e^{\left (-8 \, f x - 8 \, e\right )} + a e^{\left (-10 \, f x - 10 \, e\right )} - a\right )} f} + \frac {1035 \, \sqrt {a} e^{\left (-f x - e\right )} - 4790 \, \sqrt {a} e^{\left (-3 \, f x - 3 \, e\right )} + 8632 \, \sqrt {a} e^{\left (-5 \, f x - 5 \, e\right )} - 7370 \, \sqrt {a} e^{\left (-7 \, f x - 7 \, e\right )} + 2685 \, \sqrt {a} e^{\left (-9 \, f x - 9 \, e\right )}}{1920 \, {\left (5 \, a e^{\left (-2 \, f x - 2 \, e\right )} - 10 \, a e^{\left (-4 \, f x - 4 \, e\right )} + 10 \, a e^{\left (-6 \, f x - 6 \, e\right )} - 5 \, a e^{\left (-8 \, f x - 8 \, e\right )} + a e^{\left (-10 \, f x - 10 \, e\right )} - a\right )} f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1399 vs.
\(2 (86) = 172\).
time = 0.45, size = 1399, normalized size = 14.57 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\coth ^{6}{\left (e + f x \right )}}{\sqrt {a \left (\sinh ^{2}{\left (e + f x \right )} + 1\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.90, size = 381, normalized size = 3.97 \begin {gather*} -\frac {4\,{\mathrm {e}}^{3\,e+3\,f\,x}\,\sqrt {a+a\,{\left (\frac {{\mathrm {e}}^{e+f\,x}}{2}-\frac {{\mathrm {e}}^{-e-f\,x}}{2}\right )}^2}}{a\,f\,\left ({\mathrm {e}}^{2\,e+2\,f\,x}-1\right )\,\left ({\mathrm {e}}^{e+f\,x}+{\mathrm {e}}^{3\,e+3\,f\,x}\right )}-\frac {32\,{\mathrm {e}}^{3\,e+3\,f\,x}\,\sqrt {a+a\,{\left (\frac {{\mathrm {e}}^{e+f\,x}}{2}-\frac {{\mathrm {e}}^{-e-f\,x}}{2}\right )}^2}}{3\,a\,f\,{\left ({\mathrm {e}}^{2\,e+2\,f\,x}-1\right )}^2\,\left ({\mathrm {e}}^{e+f\,x}+{\mathrm {e}}^{3\,e+3\,f\,x}\right )}-\frac {352\,{\mathrm {e}}^{3\,e+3\,f\,x}\,\sqrt {a+a\,{\left (\frac {{\mathrm {e}}^{e+f\,x}}{2}-\frac {{\mathrm {e}}^{-e-f\,x}}{2}\right )}^2}}{15\,a\,f\,{\left ({\mathrm {e}}^{2\,e+2\,f\,x}-1\right )}^3\,\left ({\mathrm {e}}^{e+f\,x}+{\mathrm {e}}^{3\,e+3\,f\,x}\right )}-\frac {128\,{\mathrm {e}}^{3\,e+3\,f\,x}\,\sqrt {a+a\,{\left (\frac {{\mathrm {e}}^{e+f\,x}}{2}-\frac {{\mathrm {e}}^{-e-f\,x}}{2}\right )}^2}}{5\,a\,f\,{\left ({\mathrm {e}}^{2\,e+2\,f\,x}-1\right )}^4\,\left ({\mathrm {e}}^{e+f\,x}+{\mathrm {e}}^{3\,e+3\,f\,x}\right )}-\frac {64\,{\mathrm {e}}^{3\,e+3\,f\,x}\,\sqrt {a+a\,{\left (\frac {{\mathrm {e}}^{e+f\,x}}{2}-\frac {{\mathrm {e}}^{-e-f\,x}}{2}\right )}^2}}{5\,a\,f\,{\left ({\mathrm {e}}^{2\,e+2\,f\,x}-1\right )}^5\,\left ({\mathrm {e}}^{e+f\,x}+{\mathrm {e}}^{3\,e+3\,f\,x}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________